#!/bin/sh

devs=""
#for dev in `ls /dev/ | grep bw_vg0_v`

if [ $# -eq 0 ]
then
	for dev in `bwrm_vsuscan | awk -F ":" '{print $1}' | awk -F "/" '{print $4}'`
	do
		devs="/dev/$dev $devs"
	done
else
	for dev in `cat $1`
	do
		devs="$dev $devs"
	done
fi

echo "asdpoolcreate -g 16 -n ap0 $devs"
asdpoolcreate -g 16 -n ap0 $devs
